{include file="User@Public:header"/}
{block name="style"}
<link rel="stylesheet" href="__PUBLIC__/plugs/tagsinput/bootstrap-tagsinput.css">
<script src="__PUBLIC__/plugs/tagsinput/bootstrap-tagsinput.js"></script>

<link rel="stylesheet" type="text/css" href="__PUBLIC__/plugs/webuploader/webuploader.css">
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/plugs/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/plugs/ueditor/ueditor.all.min.js"></script>
<!-- datepicker statr -->
<link href="__PUBLIC__/plugs/datepicker/css/foundation-datepicker.min.css" rel="stylesheet" type="text/css">
<script src="__PUBLIC__/plugs/datepicker/js/foundation-datepicker.js"></script>
<script src="__PUBLIC__/plugs/datepicker/js/foundation-datepicker.zh-CN.js"></script>	
<!-- datepicker end -->
{/block}
{include file="User@Public:nav"/}
<div class="container">
	<div class="row">
		<div class="col-md-2">
			{include file="User@Public:left_menu"/}
		</div>
		<div class="col-md-10 cf">
			<div class="panel panel-default cf">
				<div class="panel-heading">
					<h3 class="panel-title">{$model['title']}{$meta}</h3>
				</div>
				<div class="panel-body">
					<form action="{$savePostUrl}" method="post" class="form form-horizontal">
						{if condition="!empty($fieldGroup)"}
						<div class="tabs-wrapper">
							<ul class="nav nav-tabs">
								{volist name="fieldGroup" id="vGroup"}
								<li {if condition="$i eq 1"}class="active"{/if}><a href="#tab{$key}" data-toggle="tab">{$key}</a></li>
								{/volist}
							</ul>
							<div class="tab-content">
								{volist name="fieldGroup" id="vGroup"}
								<div class="tab-pane fade {if condition="$i eq 1"}in active{/if} margin-top" id="tab{$key}">
									{volist name="vGroup" id="field"}
									{if condition="$field['type'] eq 'hidden'"}
									<input type="hidden" name="{$field['name']}" value="{$info[$field['name']]}"/>
									{else/}
									<div class="form-group">
										<label class="col-lg-2 control-label">{$field['title']|htmlspecialchars}</label>
										<div class="col-lg-8 col-sm-10">
											{:W('Common/Form/show',array($field['type'],$field['name'],$info[$field['name']],'',$field['opt']))}
											<div class="help-block">{$field['help']}</div>
										</div>
									</div>
									{/if}
									{/volist}
								</div>
								{/volist}
							</div>
						</div>
						{else/}
						{volist name="keyList" id="field"}
						{if condition="$field['type'] eq 'hidden'"}
						<input type="hidden" name="{$field['name']}" value="{$info[$field['name']]}"/>
						{else/}
						<div class="form-group">
							<label class="col-lg-2 control-label">{$field['title']|htmlspecialchars}</label>
							<div class="col-lg-8 col-sm-10">
								{:W('Common/Form/show',array($field['type'],$field['name'],$info[$field['name']],'',$field['opt']))}
								<div class="help-block">{$field['help']}</div>
							</div>
						</div>
						{/if}
						{/volist}
						{/if}
						<div class="form-group">
							<div class="col-lg-offset-2 col-lg-10">
								<button type="submit" class="btn btn-success submit-btn ajax-post" target-form="form">确认提交</button>
								<button class="btn btn-danger btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
{block name="script"}
<script type="text/javascript" src="__PUBLIC__/plugs/webuploader/webuploader.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/plugs/webuploader/webuploader.custom.js"></script>
{/block}
{include file="User@Public:footer"/}